const {User} = require("../../model/user");
module.exports = async (req,res)=>{
  await User.findByIdAndDelete({_id:req.query.id});
  res.redirect('/admin/user');
}